#ifndef UPDATE_H
#define UPDATE_H

#include "syncdlg.h"

class PackageDescription;

class UpdateDlg : public SyncDialog
{
	public:
		enum Mode
		{
			ADD, UPDATE
		};
		UpdateDlg(HINSTANCE, HWND hParent, Mode mode, PackageDescription*);

		int	Run(void);

	protected:
		BOOL dialogProc(HWND, UINT, WPARAM, LPARAM);

		void Init();
		void TransferToDlg(PackageDescription*);
		bool8 TransferFromDlg();
		bool8 Validate(PackageDescription*);
		void ManualFilename(WORD);
		void Browse();

	protected:
		PackageDescription*	cPkg;
		HWND				hZipName, hName, hVersion;
		int32				cMode;
		bool8				cNameTyped;
};

#endif
